package com.farmpost.server.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 关注表
 * </p>
 *
 * @author king
 * @since 2022-04-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Followed对象", description="关注表")
public class Followed implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "关注人的id")
    private Integer followedUser;

    @ApiModelProperty(value = "关注状态")
    private Integer status;

    @ApiModelProperty(value = "关注时间")
    private LocalDate followTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "关注者信息")
    @TableField(exist = false)
    private UserInfo userInfo;

}
